package com.company.project.common.aop.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
 
/**
 * @author 张宇
 * 该注解表示需要缓存
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisCache {
 
    String cacheName() default "";
 
    String key() default "";
 
    long timeOut() default 0;
 
    TimeUnit timeUnit() default TimeUnit.HOURS;
}